﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Fiverr - Home</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type='text/javascript' src='js/jquery-1.7.1.min.js'></script>
<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.tinyscrollbar.min.js"></script>
<script type="text/javascript" src="js/jquery.tinysort.min.js"></script>
<script type="text/javascript" src="js/betfor5.js"></script>
<script type="text/javascript" src="js/openaccount-popup.js"></script>
<script type="text/javascript" src="js/lol.js"></script>
<!--[if lte IE 8]>
    <script src="js/html5.js" type="text/javascript"></script>
<![endif]-->
<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="css/ie_fix.css" />
<![endif]-->
<script type="text/javascript">
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0)
{   	
	var _i = window.setInterval(function ()
	{
		var auto_data = $('input:-webkit-autofill');
		if (auto_data.length > 0)
		{
		 window.clearInterval(_i);
		 
		 auto_data.each(function()
            {	
                var cred = $(this).clone(true, true);
                $(this).after(cred).remove();
				
            });
		var user = $("#ws_user");
		var pass = $("#ws_pwd");
		pass.val('');
		user.focus();
		tmpStr = user.val();
		user.val('');
		user.val(tmpStr);
		pass.focus();
		}
	}, 20);
}
</script>
</head>
<?php
include("_mysql.php");
include("_settings.php");
include("_functions.php");
include("popup.php");
$p = $_REQUEST['p'];
$activeMenu = 'active-home'; 
switch ($p){
	case '':
	$activeMenu = 'active-home';
	break;
	case 'account':
	$activeMenu = 'active-account';
	break;
	case 'account':
	$activeMenu = 'active-account';
	break;
	case 'service':
	$activeMenu = 'active-service';
	break;
	case 'support':
	$activeMenu = 'active-support';
	break;
}
?>
<body>
	<div id="master">
		<noscript class="scriptNote">Hey! It looks like you don't have JavaScript enabled. Please enable it!</noscript>
		<header>
			<?php include("sc_login.php"); ?>
        	<div id="header-bottom">
        		<div id="header-bottom_inner">
	                <div id="logo">
	                    <a href="#"><img src="images/logo.png" /></a>
	                </div>
	                <div class="slogan left">
	                	<p>The whole worlds marketplace for small services - starting at $5!</p>
	                	<p class="subSlogan">Join us and submit your own services - or buy others today!</p>
	                	<a href="#" class="join">Join us now</a>
	                </div>	                
	                <div class="clearbreak"></div>
                </div>
            </div>
        </header>
        <nav id="mainmenu">
        	<div id="mainmenu_inner">
            	<ul class="<?php echo $activeMenu; ?>">
                	<li class="menu home"><a href="index" class="icon-glass">Home</a></li>
                    <li class="menu account"><a href="#" class="icon16-news">News</a></li>
                    <li class="menu service"><a href="#" class="icon16-addgig">Add gig</a></li>
                    <li class="menu support"><a href="#" class="icon16-support">Support</a></li>
                </ul>
                <div id="search">
                	<form method="post" action="">
                    	<input type="text" value="Search ..." />
                    </form>
                </div>
                <div class="clearbreak"></div>
            </div>            
        </nav>
        <section id="content">
        	<div id="content_inner" class="clearafter">          	
                <?php
				if(!isset($p)) $p="home";
				
				$invalide = array('\\','/','/\/',':','.');
				$p = str_replace($invalide,' ',$p);
				if(!file_exists($p.".php")) $p = "home";	
				include($p.".php");
				
				?>				
			</div>
        </section>
        <footer>
        	<div id="footer_inner">
            	<div class="clearafter">
                	<div class="footer-logo">
                        <a href="#"><img src="images/logo.png" /></a>
                        <p>© 2012 <a href="#">fiverr</a> - All rights reserved</p>
                    </div>                    
                    <div class="siteinfo">
                    	<h3>Brief information about fiverr</h3>
                        <p>
                        	Etiam elementum, erat quis tristique dignissim, quam metus ultrices
							arcu, nec pretium sapien purus vel lacus. Nullam porta fringilla
							ipsum at malesuada. Aliquam purus nibh, pretium quis consequat
							aliquet, viverra vitae nulla. lum massa turpis, placerat.
						</p>
                    </div>
                    <div class="links">
                    	<h3>General</h3>
                    	<ul>                        
                            <li><a href="#">Terms of Service</a></li>
                            <li><a href="#">Account</a></li>
                            <li><a href="#">Add Service</a></li>
                            <li><a href="#">Support</a></li>
                        </ul>                        
                    </div>
                    <div class="social">
                    	<h3>Follows us on:</h3>
                    	<div class="social_inner clearafter">                        	
                            <a href="#" class="facebook"></a>
                            <a href="#" class="twitter"></a>
                            <a href="#" class="googleplus"></a>
                            <a href="#" class="delicious"></a>
                        </div>
                    </div>
                </div>
            </div>
        </footer>        
    </div>
</body>
</html>